]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Switch page when hovering the next-page indicator during DND
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 9 Dec 2022 22:43:23 +0000 (23:43 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Dec 2022 11:37:58 +0000 (11:37 +0000)
commit560565d8281f9043df92ed48d6dda0753149e025
tree42c171d0b8b076199a062a599575c3212563d480
parent549adf32186bc583190137249ea40ba6d138c14c
appDisplay: Switch page when hovering the next-page indicator during DND

In addition to the "overshoot/bumping into monitor edge" behavior we already
have, we also want to switch pages when simply hovering above the prev/next
page indicators.

This page switch shouldn't happen immediately though, it needs to be kicked
off using a timeout instead. The reason for that is that the next/prev page
indicators are large areas, and simply dragging there isn't enough of a
gesture to really interpret as "the user wants to switch pages".

After this page switch has been toggled once, it can be repeated using the
same "repeat" timeout we introduced with the last commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2581>
js/ui/appDisplay.js